Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Apr 14, 2007, 11:56:03 AM (17 years ago)
- Author:
-
sadrul
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v1
|
|
| 1 | = ["Development FAQ"] = |
| 2 | |
| 3 | [[TOC(inline,noheading)]] |
| 4 | |
| 5 | == Accounts == |
| 6 | === I created an account. But it's not being saved. === |
| 7 | You need to use purple_accounts_add to add the account to the list of available accounts. This list of accounts is saved. Note that many of the functions require an account to be on that list. So you should always call purple_accounts_add after creating an account. |
| 8 | |
| 9 | === How do I get online with an account? === |
| 10 | There are two ways you can do this: |
| 11 | * If you have other accounts online, and you want the new account to have the same status as those, then call purple_savedstatus_get_current to get the current status, and use gaim_savedstatus_activate_for_account for the account. |
| 12 | * Otherwise, you can simply do purple_account_set_status to set the status of the account. |
| 13 | An account needs to be enabled before it can be connected. So after doing either of the above, you need to enable the account by calling purple_account_set_enabled. |
| 14 | |
| 15 | |
| 16 | == Conversations == |
| 17 | === How can I create a conversation with someone? === |
| 18 | Use purple_conversation_new. Use PURPLE_CONV_TYPE_IM if the conversation is an IM (one-to-one person conversation), and use PURPLE_CONV_TYPE_CHAT if it's a multi-user conversation. |
| 19 | |
| 20 | === How can I send a message in a conversation? === |
| 21 | Use either purple_conv_im_send or purple_conv_chat_send. Note that the first parameter to either of these functions are *not* the conversation itself. Rather, it's the im-data/chat-data of the conversation which you can get from PURPLE_CONV_IM/PURPLE_CONV_CHAT. |
| 22 | |
| 23 | === Is there a way that I can print something in the conversation window, but not send the message? === |
| 24 | Yes. Use purple_conv_im_write/purple_conv_chat_write. |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!